package com.atguigu.behavior.responsibilitychain;

public class ViceSchoolMasterApprover extends Approver{


    public ViceSchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    protected void processRequest(PurchaseRequest purchaseRequest) {
        if(purchaseRequest.getMoney()<30000){
            System.out.println("副校长"+this.name+"处理请求:"+purchaseRequest);
        }else{
            this.nextApprover.processRequest(purchaseRequest);
        }
    }
}
